#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>

#define DEV_TEST "/dev/mydrv"

int main(void)
{
	char buffer[64];
	int fd;

	fd=open(DEV_TEST,O_RDONLY);
	if(fd<0){
		printf("open failed \n");
		return -1;
	}
	read(fd,buffer,64);
	close(fd);
	return 0;
}
